﻿using QMERP.SeedWork;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 角色
    /// </summary>
    public partial class Role : FullEntity<long>
    {
        public Role() 
        {
            User_Roles = new HashSet<User_Role>();
            Organization_Roles = new HashSet<Organization_Role>();
        }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 用户绑定的角色
        /// </summary>
        public virtual ICollection<User_Role> User_Roles { get; set; }
        /// <summary>
        /// 组织机构绑定的角色
        /// </summary>
        public virtual ICollection<Organization_Role> Organization_Roles { get; set; }
    }
}
